package com.qf.flash.model;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 2020/2/25 11:11
 */
public class Pay2JoinBean implements Parcelable {
    private String groupName;
    private String password;
    private int count;
    private String tips;
    private String business;
    private double money;
    private String time;
    private String orderId;

    public Pay2JoinBean() {
    }

    protected Pay2JoinBean(Parcel in) {
        groupName = in.readString();
        password = in.readString();
        count = in.readInt();
        tips = in.readString();
        business = in.readString();
        money = in.readDouble();
        time = in.readString();
        orderId = in.readString();
    }

    public static final Creator<Pay2JoinBean> CREATOR = new Creator<Pay2JoinBean>() {
        @Override
        public Pay2JoinBean createFromParcel(Parcel in) {
            return new Pay2JoinBean(in);
        }

        @Override
        public Pay2JoinBean[] newArray(int size) {
            return new Pay2JoinBean[size];
        }
    };

    public String getGroupName() {
        return groupName == null ? "" : groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public String getPassword() {
        return password == null ? "" : password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public String getTips() {
        return tips == null ? "" : tips;
    }

    public void setTips(String tips) {
        this.tips = tips;
    }

    public String getBusiness() {
        return business == null ? "" : business;
    }

    public void setBusiness(String business) {
        this.business = business;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public String getTime() {
        return time == null ? "" : time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getOrderId() {
        return orderId == null ? "" : orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(groupName);
        dest.writeString(password);
        dest.writeInt(count);
        dest.writeString(tips);
        dest.writeString(business);
        dest.writeDouble(money);
        dest.writeString(time);
        dest.writeString(orderId);
    }
}
